<?php

namespace Wbi\Bundle\SocialBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class UsersType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('userLogin')
            ->add('userPass')
            ->add('userNicename')
            ->add('userEmail')
            ->add('userUrl')
            ->add('userRegistered')
            ->add('userActivationKey')
            ->add('userStatus')
            ->add('displayName')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Wbi\Bundle\SocialBundle\Entity\Users'
        ));
    }

    public function getName()
    {
        return 'wbi_bundle_socialbundle_userstype';
    }
}
